package com.ksj.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @BelongsProject: boot_maven
 * @BelongsPackage: com.cykj.dto
 * @Author: 康思捷
 * @CreateTime: 2025-02-26 10:13
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResponseDTO {
    private Integer code;
    private String msg;
    private Object data;

    public static ResponseDTO success(Object obj){
        return new ResponseDTO(1,"success",obj);
    }
    public static ResponseDTO fli(Object obj){
        return new ResponseDTO(-1,"fli",obj);
    }
    public static ResponseDTO err(int code ,Object obj){
        return new ResponseDTO(code,"err",obj);
    }
}
